package org.walklink.common.entity;

import org.walklink.common.enums.EventTypeEnum;

import java.io.Serializable;

/**
 * 默认跟踪实体类
 *
 * @author lidishan
 */
public class DefaultTrackDto<T> implements Serializable {

    /** 当前跟踪枚举类型 **/
    private final EventTypeEnum typeEnum;

    /** 数据 **/
    private final T data;

    public DefaultTrackDto() {
        this.typeEnum = null;
        this.data = null;
    }

    public DefaultTrackDto(EventTypeEnum typeEnum, T data) {
        this.typeEnum = typeEnum;
        this.data = data;
    }

    public EventTypeEnum getTypeEnum() {
        return typeEnum;
    }

    public T getData() {
        return data;
    }
}
